package ooday05_vis;
//枚举类季节复杂版
public enum Seasons {
        //public static final Seasons SPRING = new Seasons("春天","春暖花开");
        SPRING("春天","春暖花开"),
        SUMMER("夏天","夏日炎炎"),
        AUTUMN("秋天","秋高气爽"),
        WINTER("冬天","冰天雪地");
        private String seasonName; //季节名称
        private String seasonDesc; //季节描述

        Seasons(String seasonName,String seasonDesc){//有参构造方法
            this.seasonName = seasonName;
            this.seasonDesc = seasonDesc;
        }
         public String getSeasonName() {
            return seasonName;
         }
         public void setSeasonName(String seasonName){
            this.seasonName = seasonName;
         }
         public String getSeasonDesc() {
            return seasonDesc;
         }
         public void setSeasonDesc(String seasonDesc) {
            this.seasonDesc = seasonDesc;
         }


}













